package myextends.test2;

public class Manager extends Employee{
    private int bound;

    public Manager() {
    }

    public Manager(String name, int age, int salary, int bound) {
        super(name, age, salary);
        this.bound = bound;
    }

    public Manager(int bound) {
        this.bound = bound;
    }
    public void work(){
        System.out.println("姓名"+getName()+"年龄:"+getAge()+"工资:"+getSalary()+"奖金:"+bound+"管理在分配任务");
    }

    /**
     * 获取
     * @return bound
     */
    public int getBound() {
        return bound;
    }

    /**
     * 设置
     * @param bound
     */
    public void setBound(int bound) {
        this.bound = bound;
    }

}
